#pragma once

#include "GBEditEx.h"

// CGBReBar

class CGBComboBoxEx : public CComboBox
{
    DECLARE_DYNAMIC(CGBComboBoxEx)

	friend class CGBEditEx;

public:
    CGBComboBoxEx();
    virtual ~CGBComboBoxEx();

public:
	CString GetCurrentInputURL();

    CWnd* GetEditControl(){ return m_hwndEdit;}

	//void SetTopPanelWnd(CGameBrowserTopPanel *pTopPanel);

private:
	void OnUserPutEnterKey();

protected:
    void DrawComboBox();

private:
    int     m_nButtonOffSet;
    BOOL    m_bLButtonDown;
    BOOL    m_bMouseOver;

	CWnd	*m_hwndEdit;

	CGBEditEx m_cusEditEx;
protected:
    DECLARE_MESSAGE_MAP()
    afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
    afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
    afx_msg void OnPaint();

    afx_msg void OnMouseMove(UINT nFlags, CPoint point);
    afx_msg void OnMouseLeave();

public:
	afx_msg void OnCbnEditchange();
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDestroy();
};


